<?php
namespace app\common\validate;

use think\Validate;

class Order extends Validate {

    /**
     * 后台自动增加的 不需要在这里验证
     * @var array
     */
    protected $rule = [
        'user_id'      => 'require',
        'picture_list' =>'require',
        'address'      => 'require',
        'zcode'        => 'require',
        'cellphone'    => 'require',
        'product_list' => 'require',
        'company_four_id' => 'require'
    ];

    protected $message = [
        'user_id.require'     =>'请选择团购用户',
        //'total_price.require' =>'',
        //'total_salary.require'=>'',
        'picture_list.require'=>'请上传凭证',
        'address.require'     =>'请填写收货地址',
        'zcode.require'       =>'请填写邮编',
        'cellphone.require'   =>'请填写收货人手机号码',
        'product_list.require'=>'请选择产品',
        'company_four_id'     =>'请选择展览中心'
    ];
}